package connector.homework2;

public class Test {
    public static void main(String[] args) {
        Person xiaoming=new Person();
        Dvd dvd = new Dvd();
        Camera camera = new Camera();
        Mobile mobile = new Mobile();
        Telephone telephone=new Telephone();

        xiaoming.use(telephone);
        System.out.println("\n");
        xiaoming.use(dvd);
        System.out.println("\n");
        xiaoming.use(camera);
        System.out.println("\n");
        xiaoming.use(mobile);
    }
}
